package mytest.wd2;

import java.util.UUID;

public class Test9 {
    public static void main(String[] args) {


        String input = "0_636_CUS_CAT_1107343";
        String[] parts = input.split("_");
        String part = parts[parts.length - 1];
        for (String s : parts) {
            System.out.println(s);
        }
        System.out.println(Integer.valueOf(part));

    }
}
